package com.ljt.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 部门关系表
 * </p>
 *
 * @author administrator
 * @since 2019-08-01
 */
@Data
@ApiModel(value="SysDeptRelation对象", description="部门关系表")
public class SysDeptRelation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "祖先节点")
    @TableField(value = "ancestor")
    private Integer ancestor;

    @ApiModelProperty(value = "后代节点")
    @TableField("descendant")
    private Integer descendant;


}
